<template>
  <div class="container">
    <div class="banner"> 
      <el-carousel :interval="4000" type="card" height="260px" style="padding-top: 30px;">
        <el-carousel-item v-for="(item,index) in database" :key="index">
          <img :src="item.image" style="height: 260px; width: 100%;">
        </el-carousel-item>
      </el-carousel>
    </div>
  </div>
  </template>

<script>
export default {
  data(){
    return{
    }
  },
  props:{
    database:Array
  },
}
</script>
  
  <style scoped>
    .el-carousel__item h3 {
      color: #475669;
      font-size: 14px;
      opacity: 0.75;
      line-height: 200px;
      margin: 0;
    }
    
    .el-carousel__item:nth-child(2n) {
      background-color: #99a9bf;
    }
    
    .el-carousel__item:nth-child(2n+1) {
      background-color: #d3dce6;
    }

    .container{
      position: relative;
      height: 350px;
      width: 100%;
    }
    .container .banner{
      margin:0 50px;
      height: 100%;

    }
  </style>